﻿@model Fcom.VNInsurance.Web.Models.Car
@{
    ViewBag.Title = "EditCar";
    Layout = "~/Views/Shared/_CpanelLayout.cshtml";
    var cat = (IEnumerable<Fcom.VNInsurance.Web.Models.AutoCategory>)ViewBag.AutoCategory;
}

<div class="container" style="padding:10px;">
    @using (Html.BeginForm()) { 
        <fieldset>
                 <legend style="color:#a60002;">Chỉnh sửa thông tin  xe : <span style="color:#000">@Model.Name</span></legend> <a href="@Url.Action("Index", "CarManager")">trở về</a><br /><br />
            </fieldset>
            
                 <div class="form-group">

            <label for="txttitle">Tên  xe  (*)</label>

         @Html.TextBoxFor(m=>m.Name)
          @Html.HiddenFor(m=>m.ID)
          </div>
          <div class="form-group">
                <label for="txttitle"> hãng xe  (*)</label>
                @Html.DropDownListFor(m=>m.AutoCatID,new SelectList(cat,"ID","Name"))
            </div>
          <button type="submit" class="btn btn-success">Lưu thông tin  xe </button>
    }

</div>
